package router

import (
	systemController "gitee.com/wangshh_123/cross-pay-go/src/controller/system"
	"gitee.com/wangshh_123/cross-pay-go/src/middleware"
	"github.com/gin-gonic/gin"
)

// SetupReceiptRouter 设置收款明细相关路由
func SetupReceiptRouter(router *gin.RouterGroup) {
	// 创建收款明细控制器
	receiptController := systemController.NewReceiptController()

	// 收款明细路由组
	receipt := router.Group("/receipt")
	{
		// 获取收款明细列表
		receipt.GET("/details", middleware.AuthMiddleware(), receiptController.GetReceiptDetails)

		// 获取收款汇总统计
		receipt.GET("/summary", middleware.AuthMiddleware(), receiptController.GetReceiptSummary)

		// 获取单条收款明细详情
		receipt.GET("/details/:id", middleware.AuthMiddleware(), receiptController.GetReceiptDetail)
	}
}
